package com.wzj.yygh.hosp.client;

import com.wzj.yygh.model.hosp.Schedule;
import com.wzj.yygh.vo.hosp.ScheduleOrderVo;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("service-hosp")
public interface ScheduleFeignClient {
    @ApiOperation("根据id获取预约下单数据")
    @GetMapping("inner/hosp/hospital/getScheduleOrderVo/{scheduleId}")
    ScheduleOrderVo getScheduleOrderVo(@PathVariable("scheduleId") String scheduleId);

    @ApiOperation("根据id修改预约信息")
    @PostMapping("inner/hosp/hospital/updateSchedule")
    void updateScheduleById(@RequestBody Schedule schedule);

//    @ApiOperation("根据id获取预约信息")
//    @GetMapping("inner/hosp/hospital/getSchedule/{scheduleId}")
//    Schedule getScheduleById(@PathVariable String scheduleId);
}
